export default [
  {
    path: '/eve_smart_message', // 智能到店微信消息
    name: 'eve_smart_message',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/events/eve_smart_message')); }, 'wechat') },
  }, {
    path: '/statistics', // 智能到店微信消息
    name: 'statistics',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/events/statistics')); }, 'wechat') },
  }, {
    path: '/help_message', // 一键救援进度
    name: 'help_message',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/events/help_message')); }, 'wechat') },
  }, {
    path: '/qr_code', // 二维码
    name: 'qr_code',
    //		component: resolve => require(['../pages/share/qr_code'], resolve)
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/share/qr_code')); }, 'wechat') },
  },
  // {
  //		path: '/register/:id/:activityId/:inviteWay', // 注册旧
  //		name: 'register',
  //		component:resolve => {require.ensure([], function(require){resolve(require('../pages/share/register'));}, 'oldLogin')},
  //	},{
  //		path: '/register_success', // 注册成功
  //		name: 'register_success',
  //		component:resolve => {require.ensure([], function(require){resolve(require('../pages/share/register_success'));}, 'oldLogin')},
  //	},
  {
    path: '/signup', // 注册
    name: 'signup',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/share/signup')); }, 'wechat') },
    meta: {
      title: '注册'
    }
  }, {
    //暂时不知道后台最后一位传递的参数是什么
    path: '/signup/:id/:activityId/:inviteWay/:appname/:type', // 注册
    name: 'signup',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/share/signup')); }, 'wechat') },
    meta: {
      title: '注册'
    }
  }, {
    path: '/setPassword', // 注册设置密码
    name: 'setPassword',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/share/setPassword')); }, 'wechat') },
    meta: {
      title: '设置密码'
    }
  }, {
    path: '/forget_password_step1', // 注册设置密码 忘记密码 (第一步,获取验证码)
    name: 'forget_password_step1',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/share/forgetPassword1')); }, 'wechat') },
    meta: {
      title: '忘记密码'
    }
  }, {
    path: '/forget_password_step2', // 注册设置密码 忘记密码 (第二步,验证通过后设置密码)
    name: 'forget_password_step2',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/share/forgetPassword2')); }, 'wechat') },
    meta: {
      title: '忘记密码'
    }
  }, {
    path: '/login', // 登录
    name: 'login',
    component: resolve => { require.ensure([], function (require) { resolve(require('../pages/share/login')); }, 'wechat') },
    meta: {
      title: '会员中心'
    }
  },

  // 试驾预约 维修预约 保养预约
  // is try-试驾 repair-维修 protect-保养 select-挑选车型
  {
    path: '/selectCar/:is', // 选车型
    name: 'selectCar',
    component: resolve => {
      require.ensure([], function (require) {
        resolve(require('../pages/appointment/selectCar'))
      }, 'wechat')
    },
    meta: {
      title: '爱车服务',
      keepAlive: true,
      auth: true
    }
  },{ // 定义两个避免页面流转中back不对的问题
    path: '/selectCar/:is', // 选车型
    name: '_selectCar',
    component: resolve => {
      require.ensure([], function (require) {
        resolve(require('../pages/appointment/selectCar'))
      }, 'wechat')
    },
    meta: {
      title: '爱车服务',
      keepAlive: true,
      auth: true
    }
  },{
    path: '/preAppointment/:is', // 确认预约
    name: 'preAppointment',
    component: resolve => {
      require.ensure([], function (require) {
        resolve(require('../pages/appointment/preAppointment'))
      }, 'wechat')
    },
    meta: {
      title: '爱车服务'
    }
  },{
    path: '/rescueInsuranceCall', // 确认预约
    name: 'rescueInsuranceCall',
    component: resolve => {
      require.ensure([], function (require) {
        resolve(require('../pages/rescue/call'))
      }, 'wechat')
    },
    meta: {
      title: '一键救援'
    }
  },{
    path: '/callMap', // 确认预约
    name: 'callMap',
    component: resolve => {
      require.ensure([], function (require) {
        resolve(require('../pages/rescue/call_map'))
      }, 'wechat')
    },
    meta: {
      title: '一键救援'
    }
  }
]